﻿using UnityEngine;

namespace Core.RVO
{
    /**
     * <summary>Defines static obstacles in the simulation.</summary>
     */
    public class Obstacle : IDispose
    {
        public Obstacle Prev;
        public Obstacle Next;
        public Vector2 Dir;
        public Vector2 Pos;
        public int ID;
        public bool Convex;//凸多边形的

        public void Dispose()
        {
            Prev = null;
            Next = null;
            Dir = Vector2.zero;
            Pos = Vector2.zero;
            ID = 0;
            Convex = false;
        }
    }
}
